package com.deer.wms.base.system.service.MESWebService;


import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.Endpoint;

//@Configuration
public class CxfConfig {
//    @Autowired
//    private MesWebService mesWebService;

    @Bean
    public Endpoint getEndpoint() {

        //本机地址必须是当前运行环境下的ip地址，端口号及名称自定义
        String ipAddress = "http://127.0.0.1:8915/WMSMesWebService?wsdl";
//        Endpoint publish = EndpointImpl.publish(ipAddress,mesWebService);
        MesWebService mesWebService  = new MesWebServiceImpl();
        Endpoint publish = EndpointImpl.publish(ipAddress,mesWebService);
        return publish;
    }
}
